const sync.rwmutexMaxReaders
8 uses
sync (current package)
rwmutex.go#L44: const rwmutexMaxReaders = 1 << 30
rwmutex.go#L127: if r+1 == 0 || r+1 == -rwmutexMaxReaders {
rwmutex.go#L149: r := rw.readerCount.Add(-rwmutexMaxReaders) + rwmutexMaxReaders
rwmutex.go#L177: if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {
rwmutex.go#L206: r := rw.readerCount.Add(rwmutexMaxReaders)
rwmutex.go#L207: if r >= rwmutexMaxReaders {
rwmutex.go#L232: return r < 0 && r+rwmutexMaxReaders > 0
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |